﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Apps.DAL.HC;
using System.Data;
using System.Xml.Linq;

namespace Apps.BLL.HC
{
    public partial class HC_FORM_BLL
    {
        HC_FORM_Repository dal = new HC_FORM_Repository();
        public DataTable GetList(string itemId, string beginTime, string endTime,int formState, int pageIndex, int pageSize, string sortFiled, string orderBy)
        {
            return dal.GetList(itemId, beginTime, endTime, formState, pageIndex, pageSize, sortFiled, orderBy);
        }

        public DataTable GetList(string itemId, string beginTime, string endTime,int formState)
        {
            return dal.GetList(itemId, beginTime, endTime, formState);
        }

        public int GetCount(string itemId, string beginTime, string endTime, int formState)
        {
            return dal.GetCount(itemId,beginTime,endTime,formState);
        }

        public bool DoAdd(string itemId, Dictionary<string, object> dic)
        {
            return dal.DoAdd(itemId, dic);
        }

        public bool DoEdit(string itemId, Dictionary<string, object> dic)
        {
            return dal.DoEdit(itemId, dic);
        }

        public DataTable GetById(string itemId, string formId)
        {
            return dal.GetById(itemId, formId);
        }

        public bool Examine(Dictionary<string, object> dic)
        {
            return dal.Examine(dic);
        }

        public bool DoDelete(string itemId,string id)
        {
            return dal.DoDelete(itemId,id);
        }
    }
}
